﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ExpressionLanguage
{
    public class ErrorCollector
    {
        public ErrorCollector()
        {
            Success_ = true;
            Message_ = "";
        }

        public ErrorCollector(string message)
        {
            Message_ = message;
            Success_ = false;
        }

        public bool Success
        {
            get { return Success_; }
            set { Success_ = value; }
        }

        private bool Success_;

        public string Message
        {
            get { return Message_; }
            set { Success_ = false; Message_ = value; }
        }

        private string Message_;
    }
}
